/** @file   tempcon.c
    @author M. P. Hayes, UCECE
    @date   20 August 2007
    @brief  Main executable in the temperatur controller project
    		Simply deligates all tasks in order at a constant time interval.
*/

#include "ui.h"
#include "pacer.h"
#include "system.h"


/* Define polling rates in Hz.  */
enum {LOOP_POLL_RATE = 500};


int main (void)
{
    pacer_init (LOOP_POLL_RATE);

    ui_init (LOOP_POLL_RATE);

    system_init (LOOP_POLL_RATE);

    while (1)
    {

    	pacer_wait ();

    	ui_update ();
	
		system_update ();

    }
}
